package day03;

public class OperDemo {
    public static void main(String[] args) {






        /*int num = 10;
        int flag = num>0?1:-1;
        System.out.println(flag);

        int a=10,b=20;
        int max = a>b?a:b;
        System.out.println("最大值是："+max);*/


        /*int age = 23;
        String name = "LYF";
        System.out.println("大家好我叫"+name+"今年"+age+"岁了");*/

        /*short s = 5;
        s += 10;
        int a = 5;
        a += 10;
        System.out.println(a);
        a *= 2;
        System.out.println(a);
        a /= 6;
        System.out.println(a);*/

        /*
        System.out.println(b>=a || b<c);
        System.out.println(b<=c || b>a);
        System.out.println(b!=a || b>a++);
        System.out.println(a);
        System.out.println(a==b || b<a++);
        System.out.println(a);
        int score = 90;
        System.out.println(score<0 || score>100);

        boolean b2 = !(a<b);
        System.out.println(b2);
        System.out.println(!b2);


         */

        /*
        int a=5,b=10,c=5;
        boolean b1 = b>=a && b<c;
        System.out.println(b1);
        System.out.println(b>c && b<a);//false
        System.out.println(a>=b && c>=a);//false
        System.out.println(a==c && a>b);//false
        System.out.println(b>=c && b>=a);//true

        int age = 23;
        System.out.println(age>=18 && age<=50);
        int score = 89;
        System.out.println(score>=0 && score<=100);


         */

        /*
        int a=5,b=10,c=5;
        System.out.println(c<a);//false
        System.out.println(b>a);//true
        System.out.println(c==a);//true
        System.out.println(a<b);//true
        System.out.println(c<=b);//true
        System.out.println(a++<c);//false a=6
        System.out.println(a++>c);//true a=7
        System.out.println(a++>b);//false a=8
        System.out.println(a++>=b);//false a=9

         */

        /*

       被使用时，在前在后不一样
       a++的值为a
        ++a的值为a+1

        int a=5,b=5;
        int c = a++;
        int d = b++;
        System.out.println(c);//5
        System.out.println(d);//5
        System.out.println(a++);//6
        System.out.println(a);//7
        System.out.println(++b);//7
        System.out.println(b);//7
        */

    }
}
